package cn.edu.ujn.dao;

import java.util.List;

public class CarparkInfo {
    private Integer carparkid;

    private String name;

    private String location;

    private Integer totalspaces;

    private Integer availablespaces;

    private String operator;

    private List<ParkingSpaceInfo> parkingspace;

    @Override
    public String toString() {
        return "CarparkInfo{" +
                "carparkid=" + carparkid +
                ", name='" + name + '\'' +
                ", location='" + location + '\'' +
                ", totalspaces=" + totalspaces +
                ", availablespaces=" + availablespaces +
                ", operator='" + operator + '\'' +
                ", parkingspace=" + parkingspace +
                '}';
    }

    public List<ParkingSpaceInfo> getParkingspace() {
        return parkingspace;
    }

    public void setParkingspace(List<ParkingSpaceInfo> parkingspace) {
        this.parkingspace = parkingspace;
    }

    public Integer getCarparkid() {
        return carparkid;
    }

    public void setCarparkid(Integer carparkid) {
        this.carparkid = carparkid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location == null ? null : location.trim();
    }

    public Integer getTotalspaces() {
        return totalspaces;
    }

    public void setTotalspaces(Integer totalspaces) {
        this.totalspaces = totalspaces;
    }

    public Integer getAvailablespaces() {
        return availablespaces;
    }

    public void setAvailablespaces(Integer availablespaces) {
        this.availablespaces = availablespaces;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator == null ? null : operator.trim();
    }
}